package com.stormrage.entity.edu.view;

import java.io.Serializable;

/**
 * @author www.stormragetech.com
 * @date 2016年4月2日
 * @version 1.0.0
 */
public class EduProjectMajor implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 157629607799914168L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer projectId;

	private Integer majorId;

	// ------------------------------- Fields -------------------------------

	public EduProjectMajor() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getMajorId() {
		return majorId;
	}

	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}

	// ------------------------------- Fields -------------------------------

	public static EduProjectMajor instance(Integer projectId, Integer majorId) {
		EduProjectMajor entity = new EduProjectMajor();
		entity.setProjectId(projectId);
		entity.setMajorId(majorId);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " projectId - " + projectId + " majorId - " + majorId;
	}
}
